﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 巨狼戈德林:Minion
    {
        public 巨狼戈德林():base()
        {
            buff = 4;
            Star = 5;
            Attack = 4;
            Health = 4;
            Race = race.beast;
        }


        public override void Deathrattle()
        {
            foreach(Minion m in pool.places)
            {
                if (m == null)
                    break;
                if(m.Race == race.beast||m.Race ==race.all)
                {
                    m.Attack += buff;
                    m.Health += buff;
                }
            }
            base.Deathrattle();
        }


        public override Minion NewOne()
        {
            return new 巨狼戈德林();
        }
    }


    class 巨狼戈德林_金色 : 巨狼戈德林
    {
        public 巨狼戈德林_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override Minion NewOne()
        {
            return new 巨狼戈德林_金色();
        }
    }
}
